package br.ita.battlefarm.views;

import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.app.Activity;

public class BackButton extends Button {

	public BackButton(final Context context) {
		super(context);
		setText(new String("Back"));
		setWidth(100);
		setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	((Activity)context).finish();
            }
        });
	}

}
